<?php

namespace App\Http\Controllers\Miniapp;

use App\Http\Controllers\Controller;
use App\Models\miniapp\Banner;

class BannerController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $items = Banner::select('id', 'image', 'title', 'link')->where('hide', 0)->latest('orderby')->get();
        return $this->successful($items);
    }
}
